@extends('owner.base')

@section('content')
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">
            <!-- <div class="layui-col-md6">
                 <div class="layui-card">
                        <div class="layui-card-header">快捷入口</div>
                        <div class="layui-card-body layadmin-shortcut">
                            <ul class="layui-row layui-col-space10">
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.member')}}" lay-text="账号管理">
                                        <i class="layui-icon layui-icon-user"></i>
                                        <cite>会员</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.order')}}" lay-text="货源管理">
                                        <i class="layui-icon layui-icon-template-1"></i>
                                        <cite>货源</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.shipping')}}" lay-text="运单管理">
                                        <i class="layui-icon layui-icon-cart"></i>
                                        <cite>运单</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.pay')}}" lay-text="运费管理">
                                        <i class="layui-icon layui-icon-rmb"></i>
                                        <cite>运费</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.fee')}}" lay-text="信息费管理">
                                        <i class="layui-icon layui-icon-dollar"></i>
                                        <cite>信息费</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.message')}}" lay-text="消息管理">
                                        <i class="layui-icon layui-icon-chat"></i>
                                        <cite>消息</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.permission')}}" lay-text="权限管理">
                                        <i class="layui-icon layui-icon-survey"></i>
                                        <cite>权限</cite>
                                    </a>
                                </li>
                                <li class="layui-col-xs3">
                                    <a lay-href="{{route('admin.site')}}" lay-text="站点配置">
                                        <i class="layui-icon layui-icon-set"></i>
                                        <cite>设置</cite>
                                    </a>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">数据统计</div>
                        <div class="layui-card-body">
                            <div class="layui-carousel layadmin-carousel layadmin-backlog" data-autoplay="true">
                                <div carousel-item>
                                    <ul class="layui-row layui-col-space10">
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>司机数量</h3>
                                                <p><cite>{{$driver or 0}}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>货主数量</h3>
                                                <p><cite>{{$owner or 0}}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>货源数量</h3>
                                                <p><cite>{{$order or 0}}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="layadmin-backlog-body">
                                                <h3>运单数量</h3>
                                                <p><cite>{{$shipping or 0}}</cite></p>
                                            </a>
                                        </li>
                                    </ul>


                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            -->

                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">数据概览</div>
                            <div class="layui-card-body">
                                <div class="layui-carousel layadmin-carousel layadmin-dataview" data-autoplay="true"
                                     data-interval="5000" data-anim="fade" lay-filter="LAY-index-dataview">
                                    <div carousel-item id="LAY-index-dataview">
                                        <div><i class="layui-icon layui-icon-loading1 layadmin-loading">数据加载中...</i>
                                        </div>
                                        <div></div>
                                        <div></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body layui-text">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="100">
                                    <col>
                                </colgroup>
                                <tbody>
                                <tr>
                                    <td width="40%">主框架</td>
                                    <td>Laravel {{app()->version()}}</td>
                                </tr>
                                <tr>
                                    <td>UI</td>
                                    <td>layui-2.4.5</td>
                                </tr>
                                <tr>
                                    <td>App Debug</td>
                                    <td>{{ env('APP_DEBUG')?'true':'false' }}</td>
                                </tr>
                                <tr>
                                    <td>操作系统：</td>
                                    <td>{{ $sys_info['os'] }}</td>
                                </tr>
                                <tr>
                                    <td>系统域名：</td>
                                    <td>{{ $sys_info['domain'] }}</td>
                                </tr>
                                <tr>
                                    <td>IP：</td>
                                    <td>{{ $sys_info['ip'] }}</td>
                                </tr>
                                <tr>
                                    <td>服务器环境：</td>
                                    <td>{{ $sys_info['web_server'] }}</td>
                                </tr>
                                <tr>
                                    <td>PHP 版本：</td>
                                    <td>{{ $sys_info['phpv'] }}</td>
                                </tr>
                                <tr>
                                    <td>Mysql 版本：</td>
                                    <td>{{ $sys_info['mysql_version'] }}</td>
                                </tr>
                                <tr>
                                    <td>GD 版本</td>
                                    <td>{{ $sys_info['gdinfo'] }}</td>
                                </tr>
                                <tr>
                                    <td>文件上传限制：</td>
                                    <td>{{ $sys_info['fileupload'] }}</td>
                                </tr>
                                <tr>
                                    <td>最大占用内存：</td>
                                    <td>{{ $sys_info['memory_limit'] }}</td>
                                </tr>
                                <tr>
                                    <td>最大执行时间：</td>
                                    <td>{{ $sys_info['max_ex_time'] }}</td>
                                </tr>
                                <tr>
                                    <td>安全模式：</td>
                                    <td>{{ $sys_info['safe_mode'] }}</td>
                                </tr>
                                <tr>
                                    <td>Zlib支持：</td>
                                    <td>{{ $sys_info['zlib'] }}</td>
                                </tr>
                                <tr>
                                    <td>Curl支持：</td>
                                    <td>{{ $sys_info['curl'] }}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            @endsection

            @section('script')
                <script>
                    layui.use(['index', 'console']);
                </script>
@endsection